#pragma once

class wsCallJS
{
public:
	static void runJS(CDHtmlDialog* dlg, OLECHAR* funcName);

private:
	IDispatch* script;

public:
	void init(CDHtmlDialog* dlg);
	bool call(const CString strFunc, const CStringArray& paramArray, CComVariant *vaReturn);

public:
	wsCallJS();
	~wsCallJS();
};